{include file="common/header"/}

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <form class="layui-form layui-form-pane" lay-filter="form">
                        <div class="layui-form-item">
                            <label class="layui-form-label">等级名</label>
                            <div class="layui-input-inline">
                                <input type="text" name="level_name" lay-verify="required" placeholder="{:lang('pleaseEnter')}等级名" class="layui-input">
                            </div>
                            <div class="layui-form-mid layui-word-aux">
                                在4到25个字符之间。
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">描述</label>
                            <div class="layui-input-inline">
                                <input type="text" name="description" value="" placeholder="{:lang('pleaseEnter')}描述"  class="layui-input">
                            </div>
                            <div class="layui-form-mid layui-word-aux">
                            </div>
                        </div>


                        <div class="layui-form-item">
                            <label class="layui-form-label">状态</label>
                            <div class="layui-input-inline">
                                <input type="radio" name="status" lay-filter="status" checked value="1" title="开启">
                                <input type="radio" name="status" lay-filter="status" value="0" title="关闭">

                            </div>

                        </div>

                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <input type="hidden" name="id"  >
                                <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


{include file="common/footer"/}
<script>
    layui.use(['form'], function () {
        var $ = layui.$;
        var form = layui.form;
        var info = '';
        info = {:json_encode($info)};
        form.val("form", info);
        if(info){
            $('#addPic').attr('src',info.avatar);
        }
        form.render();
    });
</script>